home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 6_11.lha / 6_11 / README < prev    next >
Text File  |  1993-08-08  |  1KB  |  23 lines

  1. he files contained here are the files for Exercise 6.11 as originally
  2. ncluded in my book. Unfortunately, there is a nonportability that slipped
  3. hrough during my testing. The problem comes about due to the way that
  4. nsigned variables are promoted. Some compilers follow the ANSI C rules
  5. hich say that preserves value for unsigned promotions, and other compilers
  6. ollow an older rule that the sign is preserved. For Exercise 6.11, this
  7. ffects the way that combinations of ARB_type to create an ARB_Ltype is
  8. erformed. Anyplace within the following code that has a statement such as
  9.  
  10. ARB_Ltype t = uv[I] * v_j + wv[iplusj] + k;
  11.  
  12. t may or may not work on your machine, depending on how your compiler works.
  13.  
  14. our best bet is to compile the code, and then run the test cases. If it
  15. asses, you're okay. If not, you'll have to make some changes.
  16.  
  17. he second edition of the Answer Book will have this mess fixed in a way
  18. hich will be more portable. My apologies.
  19.  
  20.                 Tony Hansen
  21.             hansen@pegasus.att.com, tony@attmail.com
  22.             att!pegasus!hansen, attmail!tony
  23.